package com.zhuannimei.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.zhuannimei.R;
import com.zhuannimei.utility.JackViewHolder;

public class SimpleListAdapter extends BaseObjectListAdapter {

	public SimpleListAdapter(Context context, List<? extends Object> datas) {
		super(context, datas);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		if (convertView == null) {
			convertView = View.inflate(mContext,
					R.layout.simplelist_dialog_item, null);
		}
		TextView text = JackViewHolder.get(convertView,
				R.id.listitem_dialog_text);
		String code = (String) mDatas.get(position);
		text.setText(code);
		return convertView;
	}

}
